#include <iostream>

using std::cout;
using std::endl;

class Test
{
public:
    Test(int value)
    : _iy(value)//数据成员的初始化的顺序与其在初始化列表中的顺序没有
    , _ix(_iy)//关系，只与数据成员被声明的顺序有关
    {

    }

    void print()
    {
        cout << "(" << _ix 
             << ", " << _iy
             << ")" << endl;
    }
private:
    int _iy;
    int _ix;
};


int main(int argc, char **argv)
{
    Test tst(10);
    cout << "tst = ";
    tst.print();
    return 0;
}

